package proxy.generalv1;

import proxy.example.IGamePlayer;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/11/27
 * @Modified By:
 */
public class GamePlayerProxy implements IGamePlayer {
    private IGamePlayer iGamePlayer;

    public GamePlayerProxy(String name) {
        try {
            iGamePlayer = new GamePlayer(this, name);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public void login(String name, String password) {
        iGamePlayer.login(name, password);
    }

    @Override
    public void killBoss() {
        iGamePlayer.killBoss();
    }

    @Override
    public void upgrade() {
        iGamePlayer.upgrade();
    }
}
